<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class FutseTestTask extends baseWemTask
{
 
    public function configure()
    {
        parent::configure();
        
        $this->name      = 'FutseTest';
        $this->briefDescription = 'Generic Test';
         
//        //OPTIONS
//        $this->addOptions(array(
//            new sfCommandOption('application', null,sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'backend'),
//            new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED,'The environment', 'dev'), ));
        
        //ARGUMENTS
        
    }
    
    public function execute($arguments = array(), $options = array())
    {
        //Get DB Connection
        $this->ConnectDB();
        
        
        $dev=  Doctrine_Core::getTable("Powerdev")->find(4134);
        $plant= Doctrine_Core::getTable("Plant")->find(20);
        
        //echo $dev->getLastUpdate(new DateTime('2013-04-10'))->format("Y-m-d H:i:s");
        echo $plant->getLastUpdate(new DateTime("2013-03-09"))->format("Y-m-d H:i:s");
        
       
    }
    
}
?>
